package com.hfzy.ihk.web.ivr.context;

import com.hfzy.ihk.web.ivr.support.callin.handler.*;

/**
 * Created by xzz on 2016/6/14.
 */
public class BeanUtils {

    public static FreeswitchCallIntoHandler getFreeswitchCallIntoHandler(){
        return (FreeswitchCallIntoHandler) CloudCallInitializingBean.getApplicationContext().getBean("freeswitchCallIntoHandler");
    }

    public static DongjinCallIntoHandler getDongjinCallIntoHandler(){
        return (DongjinCallIntoHandler) CloudCallInitializingBean.getApplicationContext().getBean("dongjinCallIntoHandler");
    }

    public static FreeswitchAsrCallOutHandler getFreeswitchAsrCallOutHandler(){
        return (FreeswitchAsrCallOutHandler) CloudCallInitializingBean.getApplicationContext().getBean("freeswitchAsrCallOutHandler");
    }

    public static FreeswitchAsrCallStateHandler getFreeswitchAsrCallStateHandler(){
        return (FreeswitchAsrCallStateHandler) CloudCallInitializingBean.getApplicationContext().getBean("freeswitchAsrCallStateHandler");
    }

    public static FreeswitchAsrCallSpeakStateHandler getFreeswitchAsrCallSpeakStateHandler(){
        return (FreeswitchAsrCallSpeakStateHandler) CloudCallInitializingBean.getApplicationContext().getBean("freeswitchAsrCallSpeakStateHandler");
    }

}
